
/***********************************************************************
 * God class
 * 
 * Implements the 'god' command
 *
 * Signature:
 *  public static God create ();
 *  public String name ();
 *  public boolean execute (String[] arguments);
 ***********************************************************************/

public class God extends Command {

    protected God () {
	super("god");
    }

    public static God create () {
	return new God();
    }

    public boolean execute (String[] args) {
	SpaceGame.toggleGodMode();
	if (SpaceGame.isGodMode())
	    System.out.println("God mode enabled");
	else
	    System.out.println("God mode disabled");
	return false;
    }

}